package linkedGraph;

/**
 * 顶点结点
 *
 * @param <T>
 */
public class Vertex<T> {
    T data;
    Arc next;

    public Vertex(T data, Arc next) {
        this.data = data;
        this.next = next;

    }

    @Override
    public String toString() {
        return data + "";
    }
}
